// Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

class Subnav {
  final String name;
  final String href;

  Subnav(this.name, this.href);

  @override
  String toString() => name;
}

class IndexTemplateData {
  IndexTemplateData();

  bool get includeVersion => true;

  List get navLinks => [];

  String get title => '{package.name} - Dart API docs';

  String get metaDescription =>
      'kage.name} API docs, for the Dart programming language.';

  Iterable<Subnav> getSubNavItems() {
    return [new Subnav('Libraries', '{package.href}#libraries')];
  }

  /// `null` for packages because they are at the root – not needed
  String get htmlBase => null;
}

